home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
ShareMailGiftware
/
facts
/
Rexx
/
Facts.miami
< prev
next >
Wrap
Text File
|
2002-10-28
|
779b
|
52 lines
/*
** $VER: Facts_miami.rexx 0.002 (24.12.99) © Gian Maria Calzolari <gcalzo@geocities.com>
**
**
** FUNCTION:
** Sets time from internet using Facts
**
** $HISTORY:
**
** 24 Dec 1999 : 000.002 : Added errors checking and messages
** 22 Dec 1999 : 000.001 : first attempt
**
*/
mport = 'MIAMI.1'
fport = 'FACTS'
options results
x=show('Ports',mport)
if (x~=1) then do
ExitMsg("Miami is not started!", 20)
end
x=show('Ports',fport)
if (x~=1) then do
ExitMsg("Facts is not started!", 20)
end
address value mport
ISONLINE
if (rc~=1) then
ExitMsg("Miami is not online!", 10)
address value fport
SETTIME
exit rc
/* Game Over */
/* Exit with a message */
ExitMsg:
address command
'RequestChoice >NIL: "Facts.miami" "'arg(1)'" "OK :-("'
exit arg(2)